import request from '@/utils/request'

// 查询模板目录列表
export function listPatternMenu(query) {
  return request({
    url: '/sora/templateCate/list',
    method: 'get',
    params: query
  })
}

// 保存模板目录
export function savePatternMenu(info) {
  return request({
    url: '/sora/templateCate',
    method: info.cateId?'put':'post',
    data: info
  })
}

// 删除模板目录
export function deletePatternMenu(ids) {
  return request({
    url: '/sora/templateCate/'+ids,
    method: 'delete'
  })
}